" 测试While循环功能
echo "Testing While Loop"

" 基本while循环
let i = 0
while i < 5
    echo "Count: " i
    let i = i + 1
endwhile

" 嵌套while循环
let x = 0
while x < 2
    let y = 0
    while y < 3
        echo "x=" . x . ", y=" . y
        let y = y + 1
    endwhile
    let x = x + 1
endwhile

echo "While loop tests completed"